<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<form action="index.html" method="get" 
			enctype="multipart/form-data">
			<input type="text" name="uname" id="uname" value="" placeholder="请输入用户名"/><br />
			<input type="password" name="password" /><br />
			<input type="file" value="photo"/><br />
			<input type="submit" value="提交"/>
		</form>
	</body>
	<script>
		$('form').submit(function(ev){
			ev.preventDefault();
			var data = new FormData(this);
			data.append('time', new Date());
			
			$.post({
				url:'index.html',
				data:data,
				processData:false,
				contentType:false,
				success:function(resData){
					
				}
			})
		})
	</script>
</html>
